<template>
    <view class='page'>
        <headBack :title="'查看物流'"></headBack>
        <view class="headBottom">
            <leeLogistics :list="dataList" :cardInfo="cardInfo" :color="'#2e996f'">
                <!-- <template v-slot:card="{row}">
                    <view class="">
                        <view>自定义流程内容</view>
                        <view class="">物流公司:{{row.type}}</view>
                    </view>
                </template>
                <template v-slot:process="{row}">
                    <view class="">
                        <view>自定义流程内容</view>
                        <view>时间：{{row.time}}</view>
                    </view>
                </template> -->
            </leeLogistics>
        </view>
    </view>
</template>
<script>
import {
    getTrack
} from "@/api/my/orderList.js"
export default {
    components: {},
    data() {
        return {
            orderNo: '',
            cardInfo: {},
            dataList: [
            ]
        };
    },
    onLoad(params) {
        console.log(params.orderNo, "params")
        if (params) {
            this.getList(params.orderNo)
        }
    },
    methods: {
        getList(orderNo) {
            getTrack({ order_no: orderNo }).then(res => {
                console.log(res.data, "ressssss")
                this.cardInfo = res.data.company
                this.dataList = res.data.lists
            }).catch(err => {

            })
        }
    },
};
</script>
<style scoped lang='scss'>
</style>